package com.dbcon;

import java.sql.Connection;
import java.sql.DriverManager;
import java.util.Properties;

public class DBConnection {

	public static Connection getConnection() {
		Connection conn = null;
		String url = "jdbc:mysql://10.2.3.56:3306/daim";
		Properties props = new Properties();
		props.put("user", "daimadmin");
		props.put("password", "daimadmin");
		try {
			Class.forName("com.mysql.jdbc.Driver").newInstance();
			conn = DriverManager.getConnection(url, props);
		} catch (Exception e) {
			System.err.println("in exception");
			e.printStackTrace();
		}
		return conn;
	}
}
